export const prodPlugins = [
  {
    name: 'vue',
    var: 'Vue',
    path: `https://unpkg.com/vue@3.4.15/dist/vue.global.js`
  },
  {
    name: 'ant-design-vue',
    var: 'AntDesignVue'
  },
  {
    name: '@ant-design/icons-vue',
    var: 'AntDesignIconsVue'
  },
  {
    name: '@ant-design/colors',
    var: 'AntDesignColors'
  },
  {
    name: 'lodash-es',
    var: 'LodashEs'
  },
  {
    name: '@vueuse/core',
    var: 'VueuseCore'
  },
  {
    name: 'ace-builds',
    var: 'AceBuilds'
  },
  {
    name: '@purge-icons/generated',
    var: 'PurgeIconsGenerated'
  },
  {
    name: 'vue-types',
    var: 'VueTypes'
  },
  {
    name: 'resize-observer-polyfill',
    var: 'ResizeObserverPolyfill'
  },
  {
    name: 'pdfjs-dist',
    var: 'PdfjsDist'
  },
  {
    name: 'sortablejs',
    var: 'Sortablejs'
  },
  {
    name: 'dayjs',
    var: 'Dayjs'
  }
  // {
  //   name: '@ant-design/icons-vue',
  //   var: '@ant-design/icons-vue'
  // }
];

export const externalOptions = prodPlugins.reduce((origin, item) => ({ ...origin, [item.name]: item.var }), {});
